using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RobotSimulator.Basic
{
    public class BasicSensor : IEU
    {
        [HideInInspector]
        public string output_data;
        protected override void Start()
        {
            this.mode = IEUMode.Keep;
            //this.defaultCmd =new CmdGetSensorData();
            base.Start();
        }
    }
    public class CmdGetSensorData : Command
    {
        protected virtual string GetData(IEU ieu)
        {
            if (ieu is not BasicSensor)
            {
                return "";
            }
            else
            {
                return ((BasicSensor)ieu).output_data;
            }
        }
        public CmdGetSensorData()
        {
            this.execute = GetData;
        }
    }
    [System.Serializable]
    public class BasicSensorData
    {

    }
}

